package org.autumn.awt;

import java.awt.*;

public class WindowDemo {
    public static void main(String[] args) {
        Frame frame = new Frame();



        frame.setBounds(100,100,500, 300);
        frame.setVisible(true);
    }

    private static void testScrollPane(Frame frame) {
        ScrollPane scrollPane = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
        scrollPane.add(new TextField("111"));
        scrollPane.add(new Button("button"));
        frame.add(scrollPane);
    }

    private static void panelTest(Frame frame) {
        Panel panel = new Panel();
        panel.add(new TextField("123"));
        panel.add(new Button("button"));
        frame.add(panel);
    }
}
